package com.zx.flow.api.execute.request;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Schema(title = "流程-保存", description = "流程-保存")
public class FlowParamSave extends FlowParam {

    @Schema(description = "操作人账号", example = "zhangsan", requiredMode = RequiredMode.REQUIRED)
    @NotEmpty(message = "操作人账号不能为空")
    private String accountCode;

    public FlowParamSave(String flowId, String accountCode) {
        this.setId(flowId);
        this.accountCode = accountCode;
    }
}
